package com.chb.jblog.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.chb.jblog.dao.UserMapper;
import com.chb.jblog.entity.User;
import com.chb.jblog.service.UserServiceI;
@Service
public class UserServiceImpl implements UserServiceI{

	@Autowired
	private UserMapper userDao;
	
	@Override
	public int insert(User record) {
		return userDao.insert(record);
	}

	@Override
	public User selectByPrimaryKey(Integer id) {
		return userDao.selectByPrimaryKey(id);
	}

	@Override
	public List<User> setectAll() {
		return userDao.setectAll();
	}

}
